package cn.kxm.service;

import java.util.List;
import java.util.Map;

import cn.kxm.pojo.Dict;
import cn.kxm.pojo.DictDetail;

public interface DictService {
	public List<Dict> getDictListByType(String type);
	public List<Dict> getDicts();
	public int getDictId();
	public int addDict(Dict dict);
	
	public List<Map<String, Object>> getDictList(Integer dictValue,String dictKey,String dictType,Integer pageNo,Integer pageSize);
	public int getDictCount(Integer dictValue,String dictKey,String dictType);
	public int addDictDetail(DictDetail dictDetail);
	public String getDictByType(String dictType);
	public int addAllDict(Dict dict,DictDetail dictDetail);
	
	public Map<String, Object> getDictById(Integer id);
	public int updateDict(Dict dict);
    public int updateDictDetail(DictDetail dictDetail);
    public int updateAllDict(Dict dict,DictDetail dictDetail);
    public Dict checkDictKey(String key);
    
    public int delDict(Integer id);
    public int delDictDetail(Integer did);
    public int delOne(Integer id);
}
